#ifndef __ADDRINFO_H__
#define __ADDRINFO_H__

#include "SocketFunc.h"
#include <string>

using std::string;

class AddrInfo
{
public:
   AddrInfo(string ip="0.0.0.0", string port="8888"); 
   ~AddrInfo();

   addrinfo* getAddrInfo();

   void freeTargetAddr();

private:
    addrinfo sourceAddr_; 
    addrinfo *targetAddr_;
};


#endif
